/*
  @author: 13813
  @date: 2024/11/12 11:16
*/
public class Array2Demo02 {
    public static void main(String[] args) {
//        int[][] arr = new int[3][2];

//        int[][] arr = {{9, 2}, {1, 2, 3}, {6}};

        int[][] arr = new int[3][];//没有一维数组

        arr[0] = new int[3];

        arr[1] = new int[2];


        for (int i = 0; i < arr.length; i++) { //遍历二维数组
            for (int j = 0; j < arr[i].length; j++) {//遍历二维数组中的一维数组
                System.out.println(arr[i][j]);
            }
        }

    }
}
